package com.zhz.model.system.contract.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @author zhouhengzhe
 * @date 2023/3/21
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class UserDTO {

    @ApiModelProperty("用户ID")
    private String id;

    @ApiModelProperty("手机号码")
    private String mobile;

    @ApiModelProperty("用户名称")
    private String username;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("启用状态 0是禁用，1是启用")
    private Integer enableState;

    @ApiModelProperty("部门ID")
    private String departmentId;

    @ApiModelProperty("入职时间")
    private LocalDate timeOfEntry;

    @ApiModelProperty("聘用形式")
    private Integer formOfEmployment;

    @ApiModelProperty("工号")
    private String workNumber;

    @ApiModelProperty("管理形式")
    private String formOfManagement;

    @ApiModelProperty("工作城市")
    private String workingCity;

    @ApiModelProperty("转正时间")
    private LocalDate correctionTime;

    @ApiModelProperty("在职状态 1.在职  2.离职")
    private Integer inServiceStatus;

    @ApiModelProperty("企业ID")
    private String companyId;

    @ApiModelProperty("企业名称")
    private String companyName;

    @ApiModelProperty("部门名称")
    private String departmentName;

    @ApiModelProperty("用户级别：saasAdmin，coAdmin，user")
    private String level;

    @ApiModelProperty("头像")
    private String staffPhoto;

    @ApiModelProperty("离职时间")
    private LocalDateTime timeOfDimission;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("创建人")
    private String creator;

    @ApiModelProperty("创建人编码")
    private String creatorCode;

    @ApiModelProperty("更新人")
    private String updater;

    @ApiModelProperty("更新人编码")
    private String updaterCode;
}